//
//  BleDevice.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/3/27.
//

#import "BleDevice.h"

@implementation BleDevice
// 实现 NSCoding 协议方法
- (void)encodeWithCoder:(NSCoder *)coder {
    [coder encodeObject:self.devName forKey:@"devName"];
    
}

- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super init];
    if (self) {
        self.devName = [coder decodeObjectForKey:@"devName"];
       
    }
    return self;
}

+ (BOOL)supportsSecureCoding
{
    return YES;
}
@end
